package com.upcode.weighing.vo.resp.eagle;

import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper=false)
public class EagleVehicleCheckRespVo implements Serializable {
    private String msgType;
    private String msgID;
    /**
     * 流水号
     */
    private String wasteSn;
    /**
     * 处理标志
     * 0：成功； 1：失败;
     */
    private String flag;
    /**
     * 网点编号
     */
    private String posID;
    /**
     * 终端机编号
     */
    private String terminalID;
    private String reason	;//原因
    private String info	;//描述


    public enum VehicleCheckRespEnum {

        flag_true(0,"可发行"),
        flag_false(1,"不可发行"),

        Reason_1(1,"车牌号不一致"),
        Reason_2(2,"车牌号一致、车牌颜色不一致"),
        Reason_3(3,"车牌号一致、车牌颜色一致、车型一致"),
        Reason_4(4,"车牌号一致、车牌颜色一致、车型不一致")
        ;

        private int value;
        private String msg;

        VehicleCheckRespEnum(int value, String msg) {
            this.msg = msg;
            this.value = value;
        }

        public int getValue() {
            return value;
        }

        public void setValue(int value) {
            this.value = value;
        }

        public String getMsg() {
            return msg;
        }

        public void setMsg(String msg) {
            this.msg = msg;
        }
    }

    public String getMsgType() {
        return msgType;
    }

    public void setMsgType( String msgType ) {
        this.msgType = msgType;
    }

    public String getMsgID() {
        return msgID;
    }

    public void setMsgID( String msgID ) {
        this.msgID = msgID;
    }

    public String getWasteSn() {
        return wasteSn;
    }

    public void setWasteSn( String wasteSn ) {
        this.wasteSn = wasteSn;
    }

    public String getFlag() {
        return flag;
    }

    public void setFlag( String flag ) {
        this.flag = flag;
    }

    public String getPosID() {
        return posID;
    }

    public void setPosID( String posID ) {
        this.posID = posID;
    }

    public String getTerminalID() {
        return terminalID;
    }

    public void setTerminalID( String terminalID ) {
        this.terminalID = terminalID;
    }

    public String getReason() {
        return reason;
    }

    public void setReason( String reason ) {
        this.reason = reason;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo( String info ) {
        this.info = info;
    }
}
